package com.xc.hotelmgr.consumermq.service.FeignService;

import com.alibaba.fastjson.JSONObject;
import com.xc.hotelmgr.consumermq.pojo.mq.TaskHotelList;
import com.xc.hotelmgr.consumermq.pojo.mybatis.HtDailyroom;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@FeignClient("datahandler-ctrip")
public interface CtripFeginService {
    /**
     * 分组酒店推送
     * @param taskHotelList
     * @return
     */
    @RequestMapping(value = "/ctrip/static", method = RequestMethod.POST)
    void pullAll(@RequestBody TaskHotelList taskHotelList);

    @RequestMapping(value = "/up/up_psq",method = RequestMethod.POST)
    void upPSQ(@RequestBody JSONObject jsonObject);

    @RequestMapping(value = "/saveRates2MQ", method = RequestMethod.POST)
    boolean saveRates2MQ(List<HtDailyroom> htDailyrooms);
}
